package query

import (
	"ssadmin/common/query"
)

type SysDictDataGetPageReq struct {
	query.Pagination `search:"-"`
	Id               string `form:"id" search:"type:exact;column:dict_code;table:sys_dict_data" comment:""`
	DictLabel        string `form:"dictLabel" search:"type:contains;column:dict_label;table:sys_dict_data" comment:""`
	DictValue        string `form:"dictValue" search:"type:contains;column:dict_value;table:sys_dict_data" comment:""`
	DictType         string `form:"dictType" search:"type:contains;column:dict_type;table:sys_dict_data" comment:""`
	Status           string `form:"status" search:"type:exact;column:status;table:sys_dict_data" comment:""`
}

func (m *SysDictDataGetPageReq) GetNeedSearch() interface{} {
	return *m
}

type SysDictDataGetAllResp struct {
	DictLabel string `json:"label"`
	DictValue string `json:"value"`
}

type SysDictDataGetReq struct {
	Id int `uri:"dictCode"`
}

func (s *SysDictDataGetReq) GetId() interface{} {
	return s.Id
}
